#coding=utf-8
#!/usr/bin/env python
import xadmin
from xadmin import views
from models import *
# 后台主题功能
class AdminSettings(object):
    enable_themes = True
    use_bootswatch = True

# 标题及版权修改
class GlobalSettings(object):
    site_title = "后台管理系统"
    site_footer = "NOCMT.COM"
# 菜单样式设置
    menu_style = "accordion"

#添加类
xadmin.site.register(views.BaseAdminView, AdminSettings)
xadmin.site.register(views.CommAdminView, GlobalSettings)

xadmin.site.register(Column)
xadmin.site.register(Article)
